package tw.com.hitevision.whiteboard.android.stateFile;

import tw.com.hitevision.whiteboard.android.render.Word;

public class WordStateFile extends BaseStateFile {
    private float textSize;
    private float textBoxX;
    private float textBoxY;
    private int textBoxW;
    private int textBoxH;
    private int textBoxMinWidth;
    private int textBoxMaxWidth;
    private String textBoxString;
    private float totalDegree;
    private boolean textScaled;
    private int scaleMinWidth;

    public WordStateFile(Word word, float textBoxX, float textBoxY, int textBoxW, int textBoxH,
                         int textBoxMinWidth, int textBoxMaxWidth, String textBoxString, float totalDegree,
                         boolean textScaled, int scaleMinWidth) {
        super(word);
        this.setClassName(Word.class.getSimpleName());

        this.textSize = word.getTextSize();
        this.textBoxX = textBoxX;
        this.textBoxY = textBoxY;
        this.textBoxW = textBoxW;
        this.textBoxH = textBoxH;
        this.textBoxMinWidth = textBoxMinWidth;
        this.textBoxMaxWidth = textBoxMaxWidth;
        this.textBoxString = textBoxString;
        this.totalDegree = totalDegree;
        this.textScaled = textScaled;
        this.scaleMinWidth = scaleMinWidth;
    }

    public void setTextSize(float textSize) {
        this.textSize = textSize;
    }

    public float getTextSize() {
        return textSize;
    }

    public void setTextBoxX(int textBoxX) {
        this.textBoxX = textBoxX;
    }

    public float getTextBoxX() {
        return textBoxX;
    }

    public void setTextBoxY(int textBoxY) {
        this.textBoxY = textBoxY;
    }

    public float getTextBoxY() {
        return textBoxY;
    }

    public void setTextBoxW(int textBoxW) {
        this.textBoxW = textBoxW;
    }

    public int getTextBoxW() {
        return textBoxW;
    }

    public void setTextBoxH(int textBoxH) {
        this.textBoxH = textBoxH;
    }

    public int getTextBoxH() {
        return textBoxH;
    }

    public void setTextBoxString(String textBoxString) {
        this.textBoxString = textBoxString;
    }

    public String getTextBoxString() {
        return textBoxString;
    }

    public void setTextBoxMinWidth(int textBoxMinWidth) {
        this.textBoxMinWidth = textBoxMinWidth;
    }

    public int getTextBoxMinWidth() {
        return textBoxMinWidth;
    }

    public void setTextBoxMaxWidth(int textBoxMaxWidth) {
        this.textBoxMaxWidth = textBoxMaxWidth;
    }

    public int getTextBoxMaxWidth() {
        return textBoxMaxWidth;
    }

    public void setTotalDegree(float totalDegree) {
        this.totalDegree = totalDegree;
    }

    public float getTotalDegree() {
        return totalDegree;
    }

    public void setTextScaled(boolean textScaled) {
        this.textScaled = textScaled;
    }

    public boolean isTextScaled() {
        return textScaled;
    }

    public void setScaleMinWidth(int scaleMinWidth) {
        this.scaleMinWidth = scaleMinWidth;
    }

    public int getScaleMinWidth() {
        return scaleMinWidth;
    }
}
